package org.edu.modules.stu.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.edu.modules.stu.common.entity.VeBaseAppUser;

import java.util.List;
import java.util.Map;

@Mapper
public abstract interface VeBaseAppUserMapper extends BaseMapper<VeBaseAppUser> {
    //根据用户id查用户信息
    VeBaseAppUser getVeBaseAppUserById(@Param("id") String id);
    public abstract int addSysUser(VeBaseAppUser veBaseAppUser);
    List<Map<String, Object>> getBaseSysRoleList(@Param("userId") String userId);
    public abstract Integer getIdByRoleCode(String code);
    public abstract int addSysRoleUser(String userId, Integer roleId);
    public abstract Map getSysRoleUser(String userId, Integer roleId);

    public abstract int updateAppUserByUserId(String userId);

    public abstract int updateSysUserDel(String userId);

    public abstract int updateSysUserDelBatch(@Param("userIds") List<String> userIds);


    public abstract int deleteOrgan(String userId);

    public abstract int deleteRole(String userId);
}
